package com.hs.biye.service;

import com.hs.biye.model.DTO.MedicineRequest;
import com.hs.biye.model.DTO.PutMedicineRequest;
import com.hs.biye.model.VO.EmployeeVO;
import com.hs.biye.model.VO.MedicineVo;
import com.hs.biye.model.entity.Description;
import com.hs.biye.model.entity.Dosage;
import com.hs.biye.model.entity.Employee;
import com.hs.biye.model.entity.Medicine;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hs.biye.model.reslut.Result;
import com.hs.biye.model.reslut.ResultPage;

import java.util.HashMap;
import java.util.List;

/**
* @author haoshuai
* @description 针对表【medicine】的数据库操作Service
* @createDate 2024-02-02 19:16:34
*/
public interface MedicineService extends IService<Medicine> {

    /**
     * 分页查询
     * @param
     * @param
     * @return
     */
    ResultPage<MedicineVo> getPageMedicine(MedicineRequest medicineRequest);

    /**
     * 添加药品
     * @param medicineRequest
     * @return
     */
    boolean addMedicine(MedicineRequest medicineRequest);

    /**
     *修改药品
     * @param medicineRequest
     * @return
     */
    boolean updateMedicine(MedicineRequest medicineRequest);

    /**
     * 删除药品
     * @param id
     * @return
     */
    boolean removeMedicine(Integer id);

    MedicineVo getMedicineOneById(Integer id);

    List<HashMap<String, String>> getMedicineType();

    //开药
    Boolean putMedicine(PutMedicineRequest putMedicineRequest);
}
